PreviousNextTracker indexSee it online !

(300/303) 1799 - sidekick plugin popup completion hangs editing xml file with Java 8

JEdit 5.2pre1 server-background mode
Sidekick plugin 1.6 installed.
Java 1.8.0_25 or Java 1.8.0_20 ,Mac OSX Mavericks
Open the attached pom.xml file.
put the cursor at line 263 character 11.
Start typing the beginning of a comment "<--" or press the tab key.

Jedit hangs trying to render the sidekick completion popup.

Must kill -9 jEdit process at this point to recover.

<pre>
"AWT-EventQueue-0" #12 prio=6 os_prio=31 tid=0x00007f870b88e800 nid=0xc107 in Object.wait() [0x000000012d669000]
java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at java.awt.MediaTracker.waitForID(MediaTracker.java:677)
- locked <0x00000006c08bedb8> (a java.awt.MediaTracker)
at javax.swing.ImageIcon.loadImage(ImageIcon.java:314)
- locked <0x00000006c08bedb8> (a java.awt.MediaTracker)
at javax.swing.ImageIcon.<init>(ImageIcon.java:204)
at javax.swing.ImageIcon.<init>(ImageIcon.java:217)
at xml.XmlListCellRenderer.<clinit>(XmlListCellRenderer.java:33)
at xml.completion.XmlCompletion.getRenderer(XmlCompletion.java:67)
at sidekick.SideKickCompletionPopup$Candidates.<init>(SideKickCompletionPopup.java:126)
at sidekick.SideKickCompletionPopup.<init>(SideKickCompletionPopup.java:47)
at sidekick.SideKickParser.getCompletionPopup(SideKickParser.java:250)
at sidekick.SideKickActions.complete(SideKickActions.java:168)
at sidekick.SideKickActions$1.actionPerformed(SideKickActions.java:87)
at javax.swing.Timer.fireActionPerformed(Timer.java:313)
at javax.swing.Timer$DoPostEvent.run(Timer.java:245)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
at java.awt.EventQueue.access$400(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:697)
at java.awt.EventQueue$3.run(EventQueue.java:691)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

</pre>

Submitted peterlynch - 2014-10-16 14:13:32.468000 Assigned kerik-sf
Priority 7 Labels
Status pending Group
Resolution None

Comments

2014-10-16 14:14:19.102000
peterlynch

xml file referenced to reproduce the issue if it matters

pom.xml (27.0Kio)

2014-10-19 03:44:23.984000
ezust

- **assigned_to**: Eric Le Lay
- **Group**: -->

2014-10-19 04:27:19.216000
daleanson

A couple of comments --

- The XML plugin says it depends on Java 1.6, not Java 1.8.
- I can't reproduce this problem with Java 1.7.0_65 on Linux, that is, the completion works as expected.

I suspect this is due to some difference in Java 1.8, so I'd call this a feature request (support for Java 1.8) rather than a bug.

2014-11-02 12:16:39.981000
kerik-sf

I can't reproduce it with openjdk 8 on linux. In the light of #1802 I'd say it's not java 8 but yosemite specific.

openjdk version "1.8.0_25"
OpenJDK Runtime Environment (build 1.8.0_25-b18)
OpenJDK 64-Bit Server VM (build 25.25-b02, mixed mode)

I might get access to a mac with 10.10 next week.
I'll test it then.

2014-11-04 20:08:57.543000
kerik-sf

- **status**: open --> pending

2014-11-04 20:08:58.885000
kerik-sf

I could reproduce it on a 10.10 mac. Same problem with console plugin, where the dockable couldn't open.

This is a bug in jEdit core, [#3893] is tracking it.

Thanks for the detailed bug report :-)